import redis

client = redis.Redis()
name1 = '张三'
name2 = '王二'
client.zadd('age_rank', {name1: 18, name2: 26, '小明': 30})

